Select Features from Model

../../../../_images/select_model.svg

Meta-transformer for selecting features based on importance weight. Only works for models with coef or feature_importances attributes.

Documentation

Meta-transformer for selecting features based on importance weight. Only works for models with coef or feature_importances attributes.

Configuration:

  • threshold

    The threshold value to use for feature selection. Features whose importance is greater or equal are kept while the others are discarded. If “median” (resp. “mean”), then the threshold value is the median (resp. the mean) of the feature importances. A scaling factor (e.g., “1.25*mean”) may also be used. If None and if the estimator has a parameter penalty set to l1, either explicitly or implicitly (e.g, Lasso), the threshold used is 1e-5. Otherwise, “mean” is used by default.

Attributes:

Input ports:
modelmodel

Model

in-datatable

in-data

Output ports:
out-datatable

out-data

featurestable

features

Definition

Input ports

model

model

Model

in-data

table

in-data

Output ports

out-data

table

out-data

features

table

features

class node_application.SelectFromModel[source]